

if 0:

    class schema_table(DbModel):
        __classid__ = _object_guid = None
        __tablename__ = 'tables'
        table_schema = sql.Column(sql.String(), primary_key=True)
        table_name = sql.Column(sql.String(), primary_key=True)
        __table_args__ = {'schema': 'information_schema'}


    class schema_column(DbModel):
        __classid__ = _object_guid = None
        __tablename__ = 'columns'
        table_schema = sql.Column(sql.String(), primary_key=True)
        table_name = sql.Column(sql.String(), primary_key=True)
        column_name = sql.Column(sql.String(), primary_key=True)
        ordinal_position = sql.Column(sql.Integer())
        is_nullable = sql.Column(sql.String())
        data_type = sql.Column(sql.String())

        table = orm.relation('schema_table', backref='columns')
        __table_args__ = (sql.ForeignKeyConstraint(['table_schema', 'table_name'],
                                                   ['information_schema.tables.table_schema',
                                                    'information_schema.tables.table_name']),
                          {'schema': 'information_schema'})


    class schema_constraint(DbModel):
        __classid__ = _object_guid = None
        __tablename__ = 'table_constraints'
        constraint_schema = sql.Column(sql.String(), primary_key=True)
        constraint_name = sql.Column(sql.String(), primary_key=True)
        table_schema = sql.Column(sql.String(), primary_key=True)
        table_name = sql.Column(sql.String(), primary_key=True)
        constraint_type = sql.Column(sql.String())

        table = orm.relation('schema_table', backref='constraints')

        __table_args__ = (sql.ForeignKeyConstraint(['table_schema', 'table_name'],
                                                   ['information_schema.tables.table_schema',
                                                    'information_schema.tables.table_name']),
                          {'schema': 'information_schema'})


